package cn.green.mapper.exceptions;

import cn.green.mapper.model.FieldColumnMapper;
import lombok.Data;

/**
 * @author wang.yishu
 * @version 1.0
 * @className EntityTableMapperException
 * @description TODO
 * @date 2025/7/23 15:09
 */
public class EntityTableMapperException extends RuntimeException {

    protected FieldColumnMapper fieldColumnMapper;

    public EntityTableMapperException(Throwable cause, FieldColumnMapper fieldColumnMapper) {
        super(cause);
        this.fieldColumnMapper = fieldColumnMapper;
    }

    @Override
    public String getMessage() {
        return super.getMessage() + " : " + fieldColumnMapper.toString();
    }
}
